﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.master" AutoEventWireup="true"
    CodeFile="MemberManage.aspx.cs" Inherits="Platform_MemberManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Scripts/YJPopup.js" type="text/javascript"></script>
    <script src="../Scripts/GiveTip.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        var MyPopup;
        $(function () {
            MyPopup = new YJPopup({
                contentDivID: "YJContentDiv",
                dragBarDivID: "YJDragBar",
                dragable: false,
                autoCreate: true
            });
        });
        function ShowUserInfo(UserID) {
            MyPopup.Show("90%", "300px", "员工信息修改", "UserModify.aspx?UserID=" + UserID);
        }
        function ShowCardNumber(MemberID) {
            MyPopup.Show("420px", "150px", "会员卡发卡", "MemberModify.aspx?MemberID=" + MemberID);
        }

        function ClosePopup() {
            MyPopup.Hide();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table style="border-collapse: separate" cellpadding="4" cellspacing="4">
        <tr>
            <td>
                手机号：
            </td>
            <td>
                <NC:FTextBox ID="Mobile" runat="server" Width="100px" EnableCheck="false" />
            </td>
            <td>
                <asp:Button ID="btnSearch" runat="server" class="btn btn3" OnClick="btnSearch_Click"
                    Text="查 找" />
            </td>
        </tr>
    </table>
    <NC:FGridView ID="FGridView1" runat="server" AutoCreateNumber="True" ShowFooter="True"
        Width="100%" AllowExportToExcel="false" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="Mobile" HeaderText="手机号" />
            <asp:BoundField DataField="TrueName" HeaderText="称呼" />
            <asp:BoundField DataField="Sex" HeaderText="称谓" />
            <asp:BoundField DataField="Age" HeaderText="年龄" />
            <asp:BoundField DataField="CardNumber" HeaderText="会员卡号" />
            <asp:TemplateField HeaderText="发卡">
                <ItemStyle HorizontalAlign="Center" Width="60px" />
                <HeaderStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <input id="btnView" type="button" value="办理" class="Gridbtn" onclick="ShowCardNumber('<%#Eval("MemberID") %>')" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemStyle HorizontalAlign="Center" Width="60px" />
                <ItemTemplate>
                    <asp:Button ID="btnDel" runat="server" Text="删除" class="Gridbtn" CommandArgument='<%# Eval("MemberID") %>'
                        OnClientClick="return GiveTip(event,'您确定删除吗？')" OnClick="btnDel_Click" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </NC:FGridView>
</asp:Content>
